package com.lh.api.vo;

import com.lh.common.enums.PeriodStatusEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @description: 搜索结果对象
 * @author: gze
 * @create: 2020-05-14 10:39
 **/
@Data
@ApiModel("搜索结果对象")
public class SearchVo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "数据id：活动id或者商品id")
    private Long id;

    @ApiModelProperty(value = "名称")
    private String name;

    @ApiModelProperty(value = "图片")
    private String img;

    @ApiModelProperty(value = "搜索接口类型：SHOP:商品，ONE:一元夺宝")
    private String resultType;

    @ApiModelProperty(value = "期数")
    private Integer period;

    @ApiModelProperty(value = "商品价格")
    private BigDecimal price;

    @ApiModelProperty(value = "百分比")
    private BigDecimal percent;

    @ApiModelProperty(value = "当前参与人次")
    private Integer currenPortion;

    @ApiModelProperty(value = "筹集人次")
    private Integer portionNum;

    @ApiModelProperty(value = "当期活动状态 PROCESSING:进行中,REVEALED已揭晓")
    private PeriodStatusEnum status;

}
